﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="_info.ascx.cs" Inherits="BoxScore.torneo._info" %>


<asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="340px" GridLines="None" 
    AutoGenerateRows="False" DataSourceID="ObjectDataSource1" AlternatingRowStyle-BackColor="#CCCCFF">
    <Fields>
        <asp:TemplateField ShowHeader="False">
        <ItemTemplate>
            <table>
                <tr>
                    <td rowspan="2">
                        <asp:Image Width="50px" ID="Image1" runat="server" ImageUrl='<%# "~/torneo/images/" + Eval("logo", "{0}") %>' /></td>
                    <td>
                       <h2> <asp:Label ID="Label5" runat="server" Text='<%# Eval("name", "{0}") %>'></asp:Label></h2>
                    </td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("description", "{0}") %>'></asp:Label>
                    
                    </td>
                </tr>
                
                <tr>
                    <td colspan="2">
                        <asp:Label ID="Label3" runat="server" Text='<%# Eval("start_date", "{0:d}") %>'></asp:Label> - 
                        <asp:Label ID="Label4" runat="server" Text='<%# Eval("end_date", "{0:d}") %>'></asp:Label>
                        
                    </td>
                </tr>
                
                <tr>
                    <td>Premio</td>
                    <td>
                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("award", "{0}") %>'></asp:Label></td>
                </tr>
                
                
                
                
            
            </table>
        
        </ItemTemplate>
        </asp:TemplateField>
    </Fields>
</asp:DetailsView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
    SelectMethod="getTorneo" TypeName="BoxScore.Model.BoxScoreBD">
    <SelectParameters>
        <asp:QueryStringParameter DefaultValue="0" Name="id" QueryStringField="torneo" 
            Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>

